package com.my.mall.client.wechat.dao;

import java.util.List;

import com.my.mall.client.wechat.dto.UserDetailsClientDTO;
import com.my.mall.client.wechat.dto.UserInfoClientDTO;
import com.my.mall.client.wechat.vo.GoodsInfoVo;
import com.my.mall.client.wechat.vo.OrderInfoClientVo;
import com.my.mall.client.wechat.vo.ShippingAddressClientVo;
import com.my.mall.client.wechat.vo.UserDetailsClientVo;
import com.my.mall.client.wechat.vo.UserInfoClientVo;

public interface WXClientDao {

	int saveUserInfo(UserInfoClientDTO wxClientDTO);

	int updateUserInfo(UserInfoClientDTO wxClientDTO);

	UserInfoClientVo getUserByOpenId(String openid);
	
	int saveUserDetails(UserDetailsClientDTO userDetailsClientDTO);
	
	int updateUserDetails(UserDetailsClientDTO userDetailsClientDTO);
	
	UserDetailsClientVo getUserDetailsByOpenId(String openid);
	
	List<ShippingAddressClientVo> selectShippingAddressList(int userId);
	
	List<OrderInfoClientVo> selectOrderInfoList(int userId);
	
	GoodsInfoVo getGoodsInfoByOrderId(int orderId);
	
}
